package com.ler.auth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ler.auth.entity.ClientDO;
import com.ler.yrmall.basic.Form;

/**
 * @author Leron
 */
public interface ClientService extends IService<ClientDO> {

    /**
     * 分页查询
     * @param request
     * @return
     */
    IPage<ClientDO> find(Form request);

    /**
     * 新增 client
     * @param request
     * @return 客户端密钥
     */
    String saveClient(ClientDO request);

    /**
     * 重新生成 secret
     * @param clientId
     * @return 新密钥
     */
    String resetSecret(String clientId);

}
